package com.zhang.comm.utils;

import java.util.concurrent.atomic.AtomicInteger;

public final class IDWork {

    private static final Sequence worker = new Sequence();
    public static AtomicInteger atomicInteger = new AtomicInteger(0);

    private IDWork() {
    }

    public static long getSequenceId() {
        return worker.nextId();
    }


    public static void main(String[] args) {
        for (int i = 0; i < 100; i++) {
            System.out.println(IDWork.getSequenceId());
        }
    }
}
